module.exports = {
	configureWebpack: {
			devServer: {
					before(app) {
						 app.get('/api/goods', function(req,res){
									res.json({
											code:0,
											list: [
												{ id: 1, name: 'python课程', price: 1000 },
												{ id: 2, name: 'java课程', price: 8000 },
												{ id: 3, name: 'golang', price: 6000 },
												{ id: 4, name: 'javascript课程', price: 3000 },
												{ id: 5, name: 'node课程', price: 3000 }
											]
									})
						 }) 
					}
			}
	}
}